﻿import Parker.Business from Parker.Business
import Rhino.Commons.Facilities
import Rhino.Security
import Rhino.Security.Interfaces from Rhino.Security
import System.Collections.Generic
import System
import WineCellar.Business.Entities from WineCellar.Business
import WineCellar.Business.Services
import WineCellar.Business.ServiceInterfaces
import WineCellar.Core.Interfaces from WineCellar.Core
import Castle.Core.Interceptor from Castle.Core
import WineCellar.Core.Interceptors from WineCellar.Core
import WineCellar.Business.SecurityInterfaces from WineCellar.Business
import WineCellar.Core.NHibernate from WineCellar.Core


facility RhinoTransactionFacility

facility RhinoSecurityFacility:
	securityTableStructure = SecurityTableStructure.Prefix
	userType = User

cfg = "D:\\OSS\\WineCellarManagerASPNETMVC\\Tenants\\Parker\\Configuration\\Parker.cfg.xml"
facility NHibernateUnitOfWorkFacility:
	config = NHibernateUnitOfWorkFacilityConfig().NHibernateConfiguration(cfg)

component INHibernateInitializationAware, CaptureConfiguration

Component "user_service", IUserService, UserService
Component "wine_service", IEntityService of Wine, ParkerWineService  
Component "region_service", IEntityService of Region, RegionService

Component "wine_entity_information_extractor", IEntityInformationExtractor of Wine, WineEntityInformationExtractor